<include file="public@header" />
<style type="text/css">

</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="">石材维保</a></li>
            <li style="float: right;"><a href="{:url('Aftersale/login')}">切换客户</a></li>
		</ul>
        <form  class="form-horizontal js-ajax-form" method="post" action="" enctype="multipart/form-data">
        	<fieldset>
            <div class="p_title">
                <span class="span_title">基本信息</span>
            </div>
            <div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;">
            	<div class="control-group1">
                    <label class="control-label">墓位编号</label>
                    <div class="controls">
                        <input type="text" value="mw123132432" disabled>
                    </div>
                </div>
            	<div class="control-group1">
                    <label class="control-label">具体位置</label>
                    <div class="controls">
                        <input type="text" value="神秀区毓秀园" disabled>
                    </div>
                </div>
                <div class="control-group1">
                    <label class="control-label">墓穴规制</label>
                    <div class="controls">
                        <select name="cate" disabled>
                            <option value="0">双穴</option>
                        </select>
                    </div>
                </div>
                <div class="control-group1">
                    <label class="control-label">占地面积</label>
                    <div class="controls">
                        <input type="text" value="2500.0" disabled>
                    </div>
                </div>
                <div class="control-group1">
                    <label class="control-label">墓碑总高</label>
                    <div class="controls">
                        <input type="text" value="12.0" disabled>
                    </div>
                </div>
                <div class="control-group1">
                    <label class="control-label">状态</label>
                    <div class="controls">
                        <input type="text" value="部分安葬" disabled>
                    </div>
                </div>
                <div class="control-group1">
                    <label class="control-label">持证人</label>
                    <div class="controls">
                        <input type="text" value="持证人姓名" disabled>
                    </div>
                </div>
                <div class="control-group1">
                    <label class="control-label">联系电话</label>
                    <div class="controls">
                        <input type="text" value="12154545645" disabled>
                    </div>
                </div>
                <div class="control-group1">
                    <label class="control-label">购买时间</label>
                    <div class="controls">
                        <input type="text" value="2019-12-12" disabled>
                    </div>
                </div>
                <div class="control-group1">
                    <label class="control-label">质保期</label>
                    <div class="controls">
                        <input type="text" value="2020-1-12" disabled>
                    </div>
                </div>
                <div class="control-group1">
                    <label class="control-label">管理期</label>
                    <div class="controls">
                        <input type="text" value="2023-1-10" disabled>
                    </div>
                </div>
                <div class="control-group1">
                    <label class="control-label">项目性质</label>
                    <div class="controls">
                        <select name="cate_info">
                            <option value="1">维保项目</option>
                            <option value="2">以旧换新</option>
                        </select>
                    </div>
                </div>
                <div class="control-group1">
                    <label class="control-label">产品图片</label>
                    <div class="controls">
                        <img src="__TMPL__Public/assets/images/1.png" class="preview" height="16" style="max-width:100px;"/>
                    </div>
                </div>
                <div class="control-group1">
                    <a class="control-label" style="width:100%;text-align:center; cursor:pointer;">查看历史维保记录</a>
                </div>
                </div>
            </fieldset>
        </form>

			<div class="service_pro">
			<div class="p_title">
                <span class="span_title">维保项目</span>
            </div>
             <div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;width:100%; overflow:hidden; overflow-x:auto;">
            <form action="{:U('Rock/order')}" method="post">
			<table class="table table-hover table-bordered" style="max-width:160% !important;width:100% !important">
				<thead>
					<tr>
                        <th width="20">
                            <input type="checkbox" class="js-check-all" data-direction="y" data-checklist='orderid' />
                        </th>
						<th>项目名称</th>
						<th>单位</th>
						<th>单价</th>
						<th>维保数量</th>
						<th>处理方式</th>
                        <th>质保</th>
                        <th>加急</th>
                        <th>办理人</th>
                        <th>维修部门</th>
                        <th>质保期</th>
                        <th>质保免费</th>
                        <th>上次完成时间</th>
                        <th>{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="results" item="vo">
					<tr>
	                	<td><input type="checkbox" class="js-check" name="order_id[]" data-yid='orderid' value="{$vo.order_id}" /></td>
						<td>描金描红</td>
                        <td>次</td>
                        <td>50</td>
                        <td>2</td>
                        <td>常规</td>
                        <td>1年</td>
                        <td><input type="checkbox" class="js-check" name="order_id[]" data-yid='orderid1' value="{$vo.order_id}" /></td>
                        <td>admin</td>
                        <td>维修部门</td>
                        <td>2025-10-15</td>
                        <td>/</td>
                        <td>2018-10-15</td>
                        <td>备注</td>
					</tr>
                    <tr>
	                	<td><input type="checkbox" class="js-check" name="order_id[]" data-yid='orderid' value="{$vo.order_id}" /></td>
						<td>穴内防水</td>
                        <td>次</td>
                        <td>50</td>
                        <td>2</td>
                        <td>常规</td>
                        <td>1年</td>
                        <td><input type="checkbox" class="js-check" name="order_id[]" data-yid='orderid1' value="{$vo.order_id}" /></td>
                        <td>admin</td>
                        <td>维修部门</td>
                        <td>2025-10-15</td>
                        <td>/</td>
                        <td>2018-10-15</td>
                        <td>备注</td>
					</tr>
                    <tr>
	                	<td><input type="checkbox" class="js-check" name="order_id[]" data-yid='orderid' value="{$vo.order_id}" /></td>
						<td>墓碑矫正</td>
                        <td>次</td>
                        <td>70</td>
                        <td>2</td>
                        <td>常规</td>
                        <td>1年</td>
                        <td><input type="checkbox" class="js-check" name="order_id[]" data-yid='orderid1' value="{$vo.order_id}" /></td>
                        <td>admin</td>
                        <td>维修部门</td>
                        <td>2025-10-15</td>
                        <td>/</td>
                        <td>2018-10-15</td>
                        <td>备注</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
            </form>
          </div>
          </div>
          <div class="old_new" style="display:none;">
			<div class="p_title">
                <span class="span_title">以旧换新</span>
            </div>
             <div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;width:100%; overflow:hidden; overflow-x:auto;">
            <form action="{:U('Rock/order')}" method="post">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
                        <th width="20">
                            <input type="checkbox" class="js-check-all" data-direction="y" data-checklist='orderid1' />
                        </th>
						<th>项目名称</th>
						<th>选择换新产品</th>
						<th>下单日期</th>
						<th>交付日期</th>
						<th>收费金额</th>
                        <th >经办人</th>
                        <th>执行人</th>
                        <th>状态</th>
                        <th>查看更换结果</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="results" item="vo">
					<tr>
	                	<td><input type="checkbox" class="js-check" name="order_id[]" data-yid='orderid1' value="{$vo.order_id}" /></td>
						<td >石材修补</td>
                        <td ><select name="cate_info" style="margin-bottom:0">
                            <option value="1">维保项目</option>
                            <option value="2">以旧换新</option>
                        </select></td>
                        <td>2019-12-26</td>
                        <td>2019-12-29</td>
                        <td>208.00</td>
                        <td>admin</td>
                        <td>admin</td>
                        <td>已完成</td>
						<td>
							<a href="{:U('Aftersale/edit',array('id'=>$vo['id']))}">免费</a>
                       		|
							<a href="{:U('Aftersale/edit',array('id'=>$vo['id']))}">减免</a>
                       		|
                            <a href="{:U('Aftersale/edit',array('id'=>$vo['id']))}">赠送</a>
                       		|
							<a href="{:U('Aftersale/edit',array('id'=>$vo['id']))}">延保</a>
                        </td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
            </form>
          </div>
          </div>
           <div>
			<div class="p_title">
                <span class="span_title">本次登记</span>
            </div>
            <div class="control-group1-p" style="border:1px solid #e2e2e2; padding-top:20px;width:100%; overflow:hidden; overflow-x:auto;">
            <form action="{:U('Rock/order')}" method="post">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
                        <th width="20">
                            <input type="checkbox" class="js-check-all" data-direction="y" data-checklist='orderid2' />
                        </th>
						<th>项目名称</th>
						<th>业务编号</th>
						<th>墓位编号</th>
						<th>具体位置</th>
						<th>下单日期</th>
                        <th >交付日期</th>
                        <th>是否收费</th>
                        <th>经办人</th>
                        <th>维修部门</th>
                        <th>状态</th>
                        <th>处理意见</th>
                        <th>查看维修结果</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="results" item="vo">
					<tr>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
            </form>
          </div>
          <div class="form-actions">
          	<div style="color:red; display:inline-block; width:220px; font-size:20px;">合计金额：￥1500</div>
            <div class="btn btn-primary" id="check-btn">确认收款</div>
            <div class="btn btn-primary" id="check-btn">打印结算单</div>
            <div class="btn btn-primary" id="check-btn">保存</div>
             <div class="btn btn-primary" id="check-btn">提交</div>
            <a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
          </div>

	</div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
    <script type="application/javascript">
    	$("select[name='cate_info']").change(function(){
				var mark = $("select[name='cate_info']").val();
				if(mark==1){
					$('.service_pro').show();
					$('.old_new').hide();
				}else if(mark==2){;
					$('.service_pro').hide();
					$('.old_new').show();
				}
		});
    </script>
</body>
</html>